/*
 * @Description:
 * @Author: maxyang
 * @Date: 2022-06-20 14:50:58
 * @LastEditTime: 2022-06-20 23:03:57
 * @LastEditors: liutq
 * @Reference:
 */
package common

type VBuyerInfo struct {
	Phone string `json:"phone"`
}

type VOrder struct {
	Buyer   VBuyerInfo `json:"buyer_info"`
	Img     string     `json:"img"`
	OrderId string     `json:"order_id"`
	Total   string     `json:"total"`
}

type VOrderList struct {
	OrderNum int `json:"order_num"`

	Orders []VOrder `json:"orders"`

	TotalNum int `json:"total_num"`
}

type VStatus struct {
	StatusCode   int8   `json:"status_code"`
	StatusReason string `json:"status_reason"`
}

type VResp struct {
	StatusInfo VStatus    `json:"status"`
	Result     VOrderList `json:"result"`
}

type SubOrder struct {
	SubOrderId int `json:"sub_order_id"`
}

type SubItems struct {
	Items []SubOrder `json:"items"`
	Total string     `json:"total"`
}

type SubResult struct {
	Result     SubItems `json:"result"`
	StatusInfo VStatus  `json:"status"`
}

type VRefound struct {
	RefundNo int `json:"refundNo"`
}

type VRStatus struct {
	StatusCode   int    `json:"code"`
	StatusReason string `json:"message"`
}
type VRefoundResult struct {
	StatusInfo VRStatus `json:"status"`
	Result     VRefound `json:"result"`
}
